<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="bookSearch.title"/></title>
    <meta name="heading" content="<fmt:message key='bookSearch.heading'/>"/>
    <meta name="menu" content="SearchMenu"/>
</head>

<s:form action="bookSearch" validate="true" id="bookSearchForm">
    <li class="info">
        <fmt:message key="bookSearch.message"/>
    </li>
    <s:textfield name="query" label="%{getText('bookSearchForm.name')}" cssClass="text medium" required="true"/>
    <li class="buttonBar bottom">
        <s:submit key="button.bookSearch" name="search" cssClass="button"/>
        <input type="button" value="<fmt:message key="button.cancel"/>" class="button"
            onclick="this.form.onsubmit = null; location.href='mainMenu.html'"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($('bookSearchForm'));
</script>